'use strict';function _Py(c,a){return new Date(c.replace(".","-"))<=new Date(a.replace(".","-"))}let _3w=_wj(function*(){let c=yield _qf("trigActList"),a={totalTrigActs:c.length,enabledTrigActs:0,usedActions:[]};for(let [,b]of c){b.disabled||++a.enabledTrigActs;for(let [d,e,f]of _Rs(b.actions||{}))"action"!=d||f.keyId||f.conds||a.usedActions.add(e)}return a});
function _Ck(c){let a=["LOCAL","errorEvts",c];_qf(...a)(b=>{b||(b={});const d=Date.now()/1E3/60/60/24|0;b[d]=(b[d]||0)+1;for(let e in b)6<d-e&&delete b[e];_pd(a,b,0)})}function _by(){return c=>{let a=["LOCAL","errorEvts"];_qf(...a)(b=>{let d={};b||(b={});const e=Date.now()/1E3/60/60/24|0;for(let [f,h]of b){let g=0;for(let [k,l]of h)6<e-k?delete h[k]:g+=l;d[f]=g?g/Object.keys(h).length:g}_pd(a,b,0);c(d)})}}
function _8u(c,a){_Py(c,a)&&_nd(function*(){for(var b=1;5>b;++b){var d=yield _ok(_Fa,yield _Pu(_pw,"binary"));if(0==d)break;yield _Pi(5E3)}_6p("NH0-update",{error:d,n:b})})}function _ry(c){2E3<c&&setTimeout(()=>{let a=_5e("NHInitData")||{cnt:0,avg:0,max:0,from:Date.now()};a.avg=(c+a.avg*a.cnt)/(a.cnt+1);a.max=Math.max(c,a.max);++a.cnt;let b=(Date.now()-a.from)/864E5;5<b&&(_6p("NHInitData",a.sc().add({days:b})),a=void 0);_Vg("NHInitData",a)})};
